package com.fram.service.admin;

import com.fram.bean.admin.user.request.UserAdminSearchRequest;
import com.fram.bean.admin.user.response.UserRoleResponse;
import com.fram.bean.sys.PageBean;
import com.fram.common.exception.ProException;
import com.fram.entity.AdminUserRole;
import com.fram.entity.User;
import com.github.pagehelper.PageInfo;
/**用户管理**/
public interface UserService {

	// 后台管理-用户列表
	public PageInfo<User> selectUser(PageBean<User> request) throws ProException;

	// 根据id查询 -用户详情
	public User selectById(Long id) throws ProException;

	// 修改用户信息
	public void updateUser(User record) throws ProException;

	// 角色修改department_id (修改部门 角色 两个参数)
	public void updateRole(AdminUserRole request) throws ProException;

	/** 管理员列表 **/
	public PageInfo<UserRoleResponse> listUserRole(PageBean<UserAdminSearchRequest> request) throws ProException;

	/** 角色详情 **/
	public AdminUserRole details(Long id) throws ProException;
}
